package com.example.web.service;

import com.example.xo.pojo.Category;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;
import java.util.List;
@Transactional
public interface CategoryService {
    public boolean add(Category category);

    public boolean update(Category category);

    public boolean deleteById(String id);

    public List<Category> findAll();

    public Category findById(String id);

    public Category findByName(String name);
}
